﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NextCMS.Models;

public partial class WebAdmin_ManageCSS : WebadminBasePage
{
    int Id=0;
    protected void Page_Load(object sender, EventArgs e)
    {
        int.TryParse(Convert.ToString(Request.QueryString["Id"]),out Id);
        if (!IsPostBack)
        {
            using (SiteResourcesHelper helper = new SiteResourcesHelper())
            {
              SiteResourceModel srm=  helper.GetById(Id);
              ltrResourceName.Text = srm.Name;
              btnLoadFiles_Click(srm.FolderName);
            }
            
        }
    }
    protected void btnLoadFiles_Click(string FolderName)
    {

        Session["FileManager"] = "/Templates/" + FolderName + "/";
        ltrViewFiles.Text = @"<iframe frameborder='0' src='../FileManager/Default.aspx?sessionid=" + Session.SessionID + "' style='height: 430px; width: 100%'></iframe>";

    }
}